import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';

void main() {
  runApp(new MyApp());
}

class MyApp extends StatelessWidget {


  @override
  Widget build(BuildContext context) {
    final title = 'Cached Images';
    Widget caceimage =  CachedNetworkImage(
//            placeholder:  CircularProgressIndicator(),
      imageUrl:
      'https://api.iehu.cn/Image.php',
    );

    return new MaterialApp(
      title: title,
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text(title),
        ),
        body: new ListView(
            children: <Widget>[
              caceimage,
              caceimage,
            ]
        ),
      ),
    );
  }
}